<template>
  <div class="file_type">
    <label>視頻類型</label>
    <div class="type_area" open>
      <createType></createType>
      <div class="selected_type_body types" id="selected_area"></div>
      <div class="type_arr">
        <p>參考類型</p>
        <div class="types">
          <div
            class="bunt"
            v-for="value in fileTypes['data']"
            :key="value"
            :value="value"
            @click="selectTypeAnima"
          >
            <p>{{ fileTypes[value] }}</p>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup>
import createType from './formType/createType.vue';
// import {} from '../../../../global/global.js';
// import { onMounted, toRefs } from 'vue';
import { onMounted, toRefs } from 'vue';
import { selectTypeAnima } from './fromtableuni/fileType.js';

import { fileTypes } from './fileAppData.js';
// import { fileTypes, fileSelectedTypes } from './fileAppData.js';
let prop = defineProps(['fileInfos']);
let fileInfos = toRefs(prop['fileInfos']);

// function acv() {
//   console.log('test');
// }

onMounted(() => {
  console.log(fileInfos.files.value);
});
</script>

<style scoped lang="scss">
.bunt {
  min-width: 60px;
  height: 50px;

  display: flex;
  justify-content: center;
  align-items: center;
}
.bunt p {
  display: inline-block;
  cursor: pointer;

  vertical-align: middle;
  text-align: center;
}
.bunt p:hover {
  color: blueviolet;
  transition: color 0.1s ease-in-out 0.1s;
}
</style>

<style>
.types {
  display: flex;
  flex-wrap: wrap;
  min-height: 50px;
}

.display_select_type {
  animation-name: disp_select;
  animation-duration: 0.1s;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
}

@keyframes disp_select {
  from {
    transform: scale(0.6);
  }
  to {
  }
}
</style>
